package com.shanjupay.common.utilbak;

import java.io.Serializable;

public class PolyvUserIdUtils {

    public static PolyvUserInfo analysisPloyvUserId(String ployvUserId) {
        String[] strs = ployvUserId.split("@");
        Long userId = Long.parseLong(strs[0]);
        String userType = strs[1];
        Long studentId = Long.parseLong(strs[2]);

        PolyvUserInfo polyvUserInfo = new PolyvUserInfo(userId,userType,studentId);

        return polyvUserInfo;
    }

    public static class PolyvUserInfo implements Serializable {

        private Long userId;
        private String userType;
        private Long studentId;

        public PolyvUserInfo() {

        }

        public PolyvUserInfo(Long userId, String userType, Long studentId) {
            this.userId = userId;
            this.userType = userType;
            this.studentId = studentId;
        }

        public Long getUserId() {
            return userId;
        }

        public void setUserId(Long userId) {
            this.userId = userId;
        }

        public String getUserType() {
            return userType;
        }

        public void setUserType(String userType) {
            this.userType = userType;
        }

        public Long getStudentId() {
            return studentId;
        }

        public void setStudentId(Long studentId) {
            this.studentId = studentId;
        }


    }


}
